<!--
 * @Author: Wulala
 * @Date: 2025-01-14 13:25:24
 * @LastEditTime: 2025-01-17 15:24:15
 * @LastEditors: Wulala
 * @Description: 
 * @FilePath: \zhongshelife\application\admin\view\wanlshop\auth_level\opinion.html
 * 可以输入预定的版权声明、个性签名、空行等
-->
<table class="table table-striped">
	<tbody>
		<tr>
			<td style="font-size: 20px;">基础信息：</td>
			<td></td>
		</tr>	
		<tr>
			<td>{:__('Level')}</td>
			<td>
				{switch name="row.level"}
					{case value="3"}<span class="label label-info">{$row.level_text}</span>{/case}
				    {case value="4"}<span class="label label-default">{$row.level_text}</span>{/case}
					{case value="5"}<span class="label label-danger">{$row.level_text}</span>{/case}
				{/switch}
			</td>
		</tr>
		<tr>
			<td>{:__('Name')}</td>
			<td>{$row.name|htmlentities}</td>
		</tr>
		
		<tr>
			<td>{:__('Mobile')}</td>
			<td>{$row.mobile|htmlentities}</td>
		</tr>

		<tr>
			<td>{:__('Area')}</td>
			<td>{$row.area|htmlentities}</td>
		</tr>
		
		<tr>
			<td>{:__('AreaCode')}</td>
			<td>{$row.area_code|htmlentities}</td>
		</tr>
		<tr>
			<tr>
				<td style="font-size: 20px;">审核意见：</td>
				<td></td>
			</tr>
			<tr>
				<td><textarea name="refuse" id="refuse" style="width: 100%;height: 100px;">{$row.refuse|htmlentities}</textarea></td>
				<td></td>
			</tr>
		</tr>	
		<input type="hidden" value="{$row.id}" id="id">
	</tbody>
</table> 
<div class="form-group layer-footer">
	<label class="control-label col-xs-12 col-sm-2"></label>
	<div class="col-xs-12 col-sm-8">
		<button type="submit" class="btn btn-success btn-embossed" onclick="tijiao()">{:__('OK')}</button>
		<button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
	</div>
</div>

<script>
	function tijiao(){
		var refuse=$('#refuse').val();
		var id=$('#id').val();
		$.ajax({
			url      : "wanlshop/auth_level/opinion",
			type     : 'post',
			data     : {'id':id,'refuse':refuse},
			dataType : 'json',
			success  : function(res){
				if(res.code==1){
					alert('审核成功');
				}else{
					alert('审核失败');
				}
			}
		})
	}
</script>
